package com.pureut.quality.controller;

import java.util.List;

import com.pureut.common.core.web.controller.BaseController;
import com.pureut.common.core.web.domain.AjaxResult;
import com.pureut.common.core.web.page.TableDataInfo;
import com.pureut.common.log.annotation.Log;
import com.pureut.common.log.enums.BusinessType;
import com.pureut.quality.domain.AuditSummary;
import com.pureut.quality.domain.AuditSummaryDetails;
import com.pureut.quality.domain.vo.AuditSummaryVo;
import com.pureut.quality.service.IAuditSummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;


/**
 * 审核总结报告Controller
 *
 * @author ruoyi
 * @date 2025-04-09
 */
@RestController
@RequestMapping("/system/summary")
public class AuditSummaryController extends BaseController
{
    @Autowired
    private IAuditSummaryService auditSummaryService;

    /**
     * 新增审核总结报告
     */
    @Log(title = "新增审核总结报告", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult edit(@RequestBody AuditSummaryVo auditSummaryVo)
    {
        return toAjax(auditSummaryService.saveAuditSummary(auditSummaryVo));
    }

}
